package com.swpu.select.service.impl;

import com.swpu.select.dao.StudentMapper;
import com.swpu.select.pojo.Student;
import com.swpu.select.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceimpl implements StudentService {
    @Autowired
    StudentMapper studentMapper;
    @Override
    public List<Student> getList() {
        return studentMapper.getList();
    }

    @Override
    public int addStudent(Student student) {
        return studentMapper.addStudent(student);
    }

    @Override
    public int updateStudent(Student student) {
        return studentMapper.updateStudent(student);
    }

    @Override
    public int deleteStudent(String stuNo) {
        return studentMapper.deleteStudent(stuNo);
    }
}
